#ifndef BAIDULOGIN_H
#define BAIDULOGIN_H

#include <QObject>
#include <QQmlEngine>
#include <QtQml/qqmlregistration.h>


class BaiduLogin : public QObject
{
    Q_OBJECT
    Q_PROPERTY(QString client_id MEMBER client_id NOTIFY clientidChange)
    QML_UNCREATABLE("")
public:
    /** 百度网盘的申请的client_id */
    QString client_id;

    explicit BaiduLogin(QObject *parent = nullptr);

    Q_INVOKABLE bool loginSucess(QString url);

signals:
    void clientidChange();
};

#endif // BAIDULOGIN_H
